package chatbot.base;

import java.util.prefs.*;
import java.util.SortedSet;

public interface ChatConnection {
    public static enum Status {
        OFFLINE, CONNECTED, ONLINE, ERROR
    }
    public void setPreferences(Preferences prefs);
    public void connect() throws Exception;
    public void disconnect();
    public SortedSet<ChatRoom> getRooms();
    public Status getStatus();
}
